package com.medsoft.drpcp;

import io.netty.channel.Channel;

public class Member {
	private String memberName;
	private String address;
	private int port;
	private Channel channel;
	private boolean isConnected = true;
	public boolean isConnected() {
		return isConnected;
	}

	public void setConnected(boolean isConnected) {
		this.isConnected = isConnected;
	}
	
	public Member(String address2, int port2) {
		this.address = address2;
		this.port = port2;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	
	public String getMemberName() {
		return this.address + ":" + this.port;
	}
	public Channel getChannel() {
		return channel;
	}
	public void setChannel(Channel channel) {
		this.channel = channel;
	}
}
